function page(type)
{
    let pageNum = $("#pageNum").val();
    pageNum = (pageNum == "" ? 1 : parseInt(pageNum));

    let pageSize = $("#pageSize").val();
    pageSize = (pageSize == "" ? 10 : parseInt(pageSize));

    let nowNum = $("#nowNum").val();
    nowNum = (nowNum == "" ? 1 : parseInt(nowNum));

    let count = $("#count").html();
    count = (count == "" ? 0 : parseInt(count));
    let countPage = Math.ceil(count / pageSize);

    //1.有余，countPage+1
    //2.刚好，countPage
    switch (type)
    {
        case "go":
            if (pageNum >= countPage)
            {
                pageNum = countPage;
            }
            else if (pageNum < 1)
            {
                pageNum = 1;
            }
            nowNum = pageNum;
            break;
        case "first":
            pageNum = 1;
            nowNum = 1;
            break;
        case "last":
            if (nowNum <= 1)
            {
                nowNum = 1;
                pageNum = 1;
            }
            else
            {
                --nowNum;
            }
            break;
        case "next":
            if (nowNum >= countPage)
            {
                nowNum = countPage;
            }
            else
            {
                ++nowNum;
            }
            break;
        case "end":
            nowNum = countPage;
            pageNum = countPage;
            break;
    }
    $("#pageNum").val(pageNum);
    $("#pageSize").val(pageSize);
    $("#nowNum").val(nowNum);
    findAll();
}